package com.gyp.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("注册参数")
public class RegisterDTO {

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty("手机号")
    @Pattern(regexp = "\\d{11}")
    private String phone;


    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;





}
